package com.macaline.service.perssion;

import com.macaline.entity.Permission;
import com.macaline.entity.Role;
import com.macaline.entity.RolePermission;

import java.util.List;

public interface RoleService {
	
	public Role queryById(Integer id);

	Object add(Role role);

	public List<Permission> getPermssionByRoleId(int roleId);

	public int addPermissionToRole(RolePermission rolePermission);
}
